package ifpb.pp.lp.percistence;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

public interface DAO extends Serializable{
    public Boolean salvar(Object object);
    public Boolean remover(Object object);
    public Boolean atualizar(Object object);
    public <T> T  buscar (Class<T> classe, Object id);
    public <T> List<T> listar(Class<T> classe);
    public <T> T executeSingleQuery(String query, Map<Integer, Object> param);
    public <T> List<T> executeMultiplyQuery(String query, Map<Integer, Object> param);
}
